const Customer = class Customer {
  constructor(props) {
    this.size = props.size;
    this.page = props.page;
    this.account = props.account;
    this.startBalance = props.startBalance;
    this.endBalance = props.endBalance;
  }

  getState() {
    let x = {}
    //账号
    if (this.account) {
      x.account = this.account;
    }
    //最小数量
    if (this.startBalance) {
      x.startBalance = this.startBalance;
    }
    //最大数量
    if (this.endBalance) {
      x.endBalance = this.endBalance;
    }
    x.size = this.size;
    x.page = this.page;
    return x;
  }
}

export default Customer
